const _ = require('lodash');
var mongoose = require('mongoose');
var FoodAdModel = mongoose.model('FoodAd');

module.exports = {
    findAds: findAds,
}


function findAds(req, res, next) {
    FoodAdModel.find({},function(err, doc){
        if (err) {
            return next(new Error(err));
        } else {
            return res.json(doc);
        }  
        
    })
    
}



